version 19
drop _all

* change the root folder according to your computer directory
global root = "D:\WorkingPaper-Series\Township_Light\Replication_Files"  
     
global dofiles = "$root\dofile"     
global working_data = "$root\workdata"
global tables = "$root\table"
global figures = "$root\figure"

cd "$working_data"


use "township_panel_final.dta", clear

binscatter log_light log_gdp ,n(100) savedata(sc_light_gdp) replace
binscatter log_firm_entry log_light ,n(100) savedata(sc_light_firm) replace
